#切片练习
#创建一个列表 分别使用切片来打印前面三个，中间三个，后面三个元素
foods = ['小龙虾','烧烤','火锅','面条','炸鸡']
print(foods[:3])
print(foods[1:4])
print(foods[-3:])
for food in foods:
    print(f"我最喜欢的食物是{food}")

#
pizza = ['牛肉','土豆','烤肉','水果','榴莲']
your_pizza = pizza[:]
pizza.append('鸡肉')
your_pizza.append("培根")
print(pizza)
print(your_pizza)